<?php
/**
 * Created by PhpStorm.
 * User: zhang
 * Date: 2018/6/30
 * Time: 21:10
 */
namespace app\shopping\model;

use app\common\model\Base;

class UserAddress extends Base{
    const DB_NAME="sopp_user_address";

    private $uid;
    public function __construct($uid)
    {
        $userAddress = getUserAddressByUid($uid);
        echo $userAddress;
    }


    private function getUserAddressByUid($uid){
        $userAddressSql = "select * from ".self::DB_NAME." where uid='$uid'";
        return$userAddressSql;
    }
}